package com.xx.ch05.text.text01;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 许欣
 * 时间：2022/4/11 17:13
 * 描述：
 */
public class test {
    @Test
    public void MonkeyTest(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        MonkeyText monkeyText=(MonkeyText)context.getBean("monkeyText");
        monkeyText.print();
    }
}
